package com.im.web.message;

import javax.jms.JMSException;
import javax.jms.Message;

import javax.jms.MessageListener;
import javax.jms.TextMessage;

public class MyMessageListener implements MessageListener {
	@Override
	public void onMessage(Message message) {
		try {
			System.out.println("来自idea消息提供者的信息：" + ((TextMessage)message).getText());
		} catch (JMSException e) {
			e.printStackTrace();
		}
	}
}
